package com.tyteam.apps.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.tyteam.apps.service.BaseDataService;
import com.tyteam.apps.common.JsonResult;
import com.tyteam.apps.model.BaseData;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *code is far away from bug with the animal protecting
 *  ┏┓　　　┏┓
 *┏┛┻━━━┛┻┓
 *┃　　　　　　　┃ 　
 *┃　　　━　　　┃
 *┃　┳┛　┗┳　┃
 *┃　　　　　　　┃
 *┃　　　┻　　　┃
 *┃　　　　　　　┃
 *┗━┓　　　┏━┛
 *　　┃　　　┃神兽保佑
 *　　┃　　　┃代码无BUG！
 *　　┃　　　┗━━━┓
 *　　┃　　　　　　　┣┓
 *　　┃　　　　　　　┏┛
 *　　┗┓┓┏━┳┓┏┛
 *　　　┃┫┫　┃┫┫
 *　　　┗┻┛　┗┻┛
 *　　
 *   @description : BaseData 控制器
 *   ---------------------------------
 *      @author liuyu
 *   @since 2017-12-21
 */
//@RequestMapping("/baseData")
//@Controller
public class BaseDataController {
    /*private final Logger logger = LoggerFactory.getLogger(BaseDataController.class);

    @Autowired(required = false)
    private BaseDataService baseDataService;

    *//**
     * @description : 获取分页列表
     * ---------------------------------
     * @author : liuyu
     * @since : Create in 2017-12-21
     *//*
    @RequestMapping("getDrop")
    @ResponseBody
    public JsonResult<BaseData> getList(String id,String value) throws Exception{
    	JsonResult<BaseData> result = new JsonResult<BaseData>();
    	EntityWrapper ew=new EntityWrapper();
    	BaseData data = new BaseData();
    	data.setId(id);
    	data.setItemValue(value);
    	ew.setEntity(data);
    	List<BaseData> list = baseDataService.selectList(ew);
    	result.setStatus("0");
    	result.setList(list);
    	return result;
    }*/
}